package ru.st.selenium;

import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

import ru.st.selenium.model.Iternal;

public class SearchMovie extends ru.st.selenium.pages.TestBase {

  @BeforeClass
  public void goToMainPage() {
    app.getNavigationHelper().openMainPage();
  }
  
  @Test
  public void searchTrue() throws Exception {
	  Iternal iternal = new Iternal()
	  .setElement("TrueTitle")
	  .setText("TrueTitle").setElementText("div.title");
      app.getFilmHelper().search(iternal);  
  }
  
  @Test
  public void searchFalse() throws Exception {
	  Iternal iternal = new Iternal()
	  .setElement("1999")
	  .setText("No movies where found.").setElementText("div.content");
      app.getFilmHelper().search(iternal);  
  }

  
}
